﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Lilium.LParse.CSharp
{
    public struct PragmaWarningBody
    {
        public PragmaWarningBody(WarningAction warningAction, ICollection<int> warningList)
        {
            if (warningList == null) throw new ArgumentNullException("warningList");

            m_WarningAction = warningAction;
            m_WarningList = warningList;
        }

        #region public WarningAction WarningAction

        private readonly WarningAction m_WarningAction;

        public WarningAction WarningAction
        {
            get
            {
                return m_WarningAction;
            }
        }

        #endregion

        #region public ICollection<int> WarningList

        private readonly ICollection<int> m_WarningList;

        public ICollection<int> WarningList
        {
            get
            {
                return m_WarningList;
            }
        }
        
        #endregion
    }
}